#include_directories(${INSTALL_INCLUDE_DIR})

project(chain)

add_executable(${PROJECT_NAME} chainsaw.cc)
target_link_libraries(${PROJECT_NAME} PRIVATE chainsaw)
target_include_directories(${PROJECT_NAME} PRIVATE ${GENERATE_DIR})

install(TARGETS ${PROJECT_NAME}
        RUNTIME DESTINATION ${INSTALL_BIN_DIR})

set_target_properties(${PROJECT_NAME} PROPERTIES
        INSTALL_RPATH "$ORIGIN/../${INSTALL_LIB_DIR}"
        INSTALL_RPATH_USE_LINK_PATH ON
)

add_dependencies(${PROJECT_NAME} generate_tasks)
